package com.entity;/*
 *
 *作者：张继成
 *任务：
 *
 *备注：
 *@Date2023/06/11/11:04
 ***/

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

@Data
@TableName("xinlilaoshi")
public class XinlilaoshiEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    public XinlilaoshiEntity() {

    }

    public XinlilaoshiEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 老师账号
     */

    private String laoshizhanghao;

    /**
     * 老师姓名
     */

    private String laoshixingming;

    /**
     * 密码
     */

    private String mima;

    /**
     * 性别
     */

    private String xingbie;

    /**
     * 头像
     */

    private String touxiang;

    /**
     * 电话号码
     */

    private String dianhuahaoma;

    /**
     * 是否审核
     */

    private String sfsh;

    /**
     * 审核回复
     */

    private String shhf;


    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;
}
